How to upgrade Gradle to the latest version
Gradle Release Notes
に従いつつ、基本的には以下のように実行すればよい。
$ ./gradlew wrapper --gradle-version=6.4.1
#Gradle
#Java